<template>
	<view>
		<button class="cu-btn" @click="refreshList()">开始</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: []
			}
		},
		// mounted() {
		// 	this.refreshList()
		// },
		methods: {
			async refreshList() {
				try {
					let res = await this.$http.get('/exercises/driverExercises/list')
					console.log(res.data)
					this.dataList = res.data.page.list
				} catch (e) {
					// console.log(e)
					console.log("出错啦")
				}
			}
		}
	}
</script>

<style>

</style>
